package com.mxpio.erp.common.util;

import com.mxpio.erp.common.workshop.entity.ManufactureOrderRoute;

import java.util.List;

public class MesScanUtil {
    public static ManufactureOrderRoute getOrderNextProcRoute(List<ManufactureOrderRoute> orderRouteList, Integer currentProcOrder){
        for (ManufactureOrderRoute orderRoute : orderRouteList){
            if (orderRoute.getProcessOrder()>currentProcOrder){
                return orderRoute;
            }
        }
        return null;
    }
}
